package com.qf.entity;

import java.util.Objects;

public class StudentClass {
    private Student student;
    private String  studentClass;


    public StudentClass() {
    }

    public StudentClass(Student student, String studentClass) {
        this.student = student;
        this.studentClass = studentClass;
    }

    public Student getStudent() {
        return student;
    }

    public void setStudent(Student student) {
        this.student = student;
    }

    public String getStudentClass() {
        return studentClass;
    }

    public void setStudentClass(String studentClass) {
        this.studentClass = studentClass;
    }



    @Override
    public String toString() {
        return "StudentClass{" +
                "student=" + student +
                ", studentClass='" + studentClass + '\'' +

                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof StudentClass)) return false;
        StudentClass that = (StudentClass) o;
        return getStudent().equals(that.getStudent()) &&
                getStudentClass().equals(that.getStudentClass()) ;
    }

    @Override
    public int hashCode() {
        return Objects.hash(getStudent(), getStudentClass());
    }


}
